i2c, soft_i2c: deblock bus if switching to another i2c bus
authorHeiko Schocher <[email protected]>
Fri, 8 Apr 2011 14:24:09 +0000 (16:24 +0200)
committerHeiko Schocher <[email protected]>
Thu, 28 Apr 2011 08:57:08 +0000 (10:57 +0200)
Deblock i2c bus when switching to another i2c bus, if using
i2c_set_bus_num().

Signed-off-by: Heiko Schocher <[email protected]>
cc: Wolfgang Denk <[email protected]>
cc: Detlev Zundel <[email protected]>
cc: Valentin Longchamp <[email protected]>
cc: Holger Brunck <[email protected]>
Signed-off-by: Valentin Longchamp <[email protected]>
drivers/i2c/soft_i2c.c

index 69b5f42205f427255344ad55913896d426774464..9b02e89e0392c975bf71879ad4a056d4dddd1d10 100644 (file)
@@ -286,6 +286,7 @@ int i2c_set_bus_num(unsigned int bus)
                int     ret;
 
                ret = i2x_mux_select_mux(bus);
+               i2c_init_board();
                if (ret == 0)
                        i2c_bus_num = bus;
                else